home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / latexinfo / Makefile < prev    next >
Makefile  |  1992-02-22  |  3KB  |  113 lines

  1. ##########  These are overridden by the contents of config.status
  2. # Where to install the executables
  3. BINDIR=${GNUBINDIR}
  4.  
  5. # Where to install the info files
  6. INFODIR=${GNUINFODIR}
  7.  
  8. # Where to install the Elisp code
  9. ELISPDIR=${GNUSHAREDIR}/emacs/latexinfo
  10.  
  11. # Where to install the style files and example.
  12. TEXDIR=${GNUSHAREDIR}/tex
  13.  
  14. # The name of your DVI to PS filter
  15. DVIPS=dvips
  16.  
  17. # The name of your GNU Emacs
  18. EMACS=xemacs
  19.  
  20. INSTALL = install -c -m 755
  21. INSTALLDATA = install -c -m 644
  22. TAR = tar cvfh
  23.  
  24. ########## End of user configurable options   ################
  25.  
  26. VERSION=`grep latexinfoversion{ styles/latexinfo.sty | sed -e 's/.*{//' -e 's/}.*//'`
  27. PROGRAM=latexinfo
  28. MANUAL=latexinfo2
  29. ELISP=${LATEXINFO}/elisp
  30. DOC=${LATEXINFO}/manual
  31.  
  32. ##########  The above are overridden by the contents of config.status
  33.  
  34. include config.status
  35.  
  36. BINS = manual/latex2dvi
  37.  
  38. UTILS = .login .latexinfo Makefile README COPYING CHANGES TODO INSTALL
  39.  
  40. STYS =     styles/latexinfo.sty \
  41.     styles/clisp.sty \
  42.     styles/elisp.sty \
  43.     styles/german.sty \
  44.     styles/format.sty \
  45.     styles/fvpindex.sty \
  46.     styles/funref.sty \
  47.     styles/Makefile
  48.  
  49. ELS =     elisp/Makefile \
  50.     elisp/$(PROGRAM).el \
  51.     elisp/latexnfo-mde.el \
  52.     elisp/latexnfo-tex.el \
  53.     elisp/latexnfo-upd.el \
  54.     elisp/clisp-fmt.el \
  55.     elisp/elisp-fmt.el \
  56.     elisp/fvpindex-fmt.el \
  57.     elisp/funref-fmt.el \
  58.     elisp/german-fmt.el \
  59.     elisp/t2latexinfo.el \
  60.     elisp/s2latexinfo.el \
  61.     elisp/l2latexinfo.el \
  62.     elisp/makeinfo.el
  63.  
  64. MANS=    manual/Makefile \
  65.     manual/$(MANUAL).bib \
  66.     manual/$(MANUAL).bbl \
  67.     manual/$(MANUAL).tex \
  68.     manual/lnfo-sample.tex
  69.  
  70. SOURCES = C/info.c C/latexindex.c C/getopt.c C/getopt1.c
  71. HEADERS = C/getopt.h
  72. SUPPORT = C/Makefile.in configure
  73.  
  74.  
  75. FLAGS = LATEXINFO=$(LATEXINFO) BINDIR=$(BINDIR) ELISPDIR=$(ELISPDIR) \
  76.     MANUAL=$(MANUAL) ELISP=$(ELISP) DOC=$(DOC) PROGRAM=$(PROGRAM) \
  77.     INFODIR=$(INFODIR) TEXDIR=$(TEXDIR) EMACS=$(EMACS) DVIPS=$(DVIPS) \
  78.     INSTALL="$(INSTALL)" INSTALLDATA="$(INSTALLDATA)"
  79.  
  80.  
  81. all:    C elisp manual
  82.  
  83. C::
  84.     (cd C; $(MAKE) $(FLAGS))
  85.  
  86. elisp::
  87.     (cd elisp; $(MAKE) $(FLAGS))
  88.  
  89. manual::
  90.     (cd manual; $(MAKE) $(FLAGS))
  91.  
  92. install:    install.C install.manual install.elisp install.styles
  93.  
  94. install.C::
  95.     (cd C; $(MAKE) install $(FLAGS) bindir=$(BINDIR) infodir=$(INFODIR) )
  96.  
  97. install.manual::
  98.     (cd manual; $(MAKE) install $(FLAGS))
  99.  
  100. install.elisp::
  101.     (cd elisp; $(MAKE) install $(FLAGS))
  102.  
  103. install.styles::
  104.     (cd styles; $(MAKE) install $(FLAGS))
  105.  
  106. clean:
  107.  
  108. THINGS_TO_TAR = $(SOURCES) $(HEADERS) $(SUPPORT) \
  109.         $(MANS) $(STYS) $(ELS) $(UTILS) $(BINS)
  110.  
  111. tar::
  112.     $(TAR) $(PROGRAM)-$(VERSION).tar $(THINGS_TO_TAR)
  113.